package com.example.lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.lol.R;
import com.example.lol.bean.CardActivityBean;
import com.example.lol.bean.NewsArticleBean;

import org.jetbrains.annotations.NotNull;

public class CardActivityAdapter extends BaseQuickAdapter<CardActivityBean, BaseViewHolder> {

    public CardActivityAdapter() {
        super(R.layout.me_card_style);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CardActivityBean cardArticleBean) {
        baseViewHolder.setText(R.id.card_top_text1,cardArticleBean.getName());
        baseViewHolder.setText(R.id.card_par3_t1,cardArticleBean.getT1());
        baseViewHolder.setText(R.id.card_par3_t2,cardArticleBean.getT2());
        baseViewHolder.setText(R.id.card_par3_t3,cardArticleBean.getT3());
        baseViewHolder.setText(R.id.card_par3_t4,cardArticleBean.getT4());
        baseViewHolder.setText(R.id.card_par4_m1,cardArticleBean.getM1());

    }
}

